// 引入koa-router
const Router = require('koa-router')
const {getImgUrl,getVipSex} = require('../../controller/data.controller')
// 创建实例
// prefix在路由地址前缀加上默认地址
const router = new Router({ prefix:'/api/data' })

// 获取首页快捷图片
router.get('/getimgurl',getImgUrl)
router.get('/getvipsex',getVipSex)


module.exports = router